package com.ruoyi.web.sso.mapper;


import com.ruoyi.web.sso.domain.DTO.TeacherInfoDTO;
import com.ruoyi.web.sso.domain.StaffChild;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 用户信息拓展 Mapper 接口
 * </p>
 ** @since 2021-10-20
 */
public interface StaffChildMapper{

    List<StaffChild> childList(@Param("staffId")String staffId);

    @Delete("delete from staff_child where staff_id = #{staffId} ")
    Integer deleteByStaffId(@Param("staffId")String staffId);

    Integer insert(StaffChild staffChild);

    /**
     * 获取班级老师id集合
     * @param classId
     * @return
     */
    List<TeacherInfoDTO> getTeacherByClassId(@Param("classId") String classId);
}
